// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import store from './store'
import App from './App'
import router from './router'
import Mixins from './router/mixins'
import {Button,Form, Input, Checkbox, FormItem,Select,
   Option, Alert, MessageBox} from 'element-ui'
Vue.use(Button);
Vue.use(Form);Vue.use(FormItem);
Vue.use(Input);Vue.use(Checkbox);
Vue.use(Select);Vue.use(Option);Vue.use(Alert);
Vue.config.productionTip = false
Vue.prototype.$alert = MessageBox.alert;
Vue.use(Mixins);

store.subscribe( (mutation,state) => {
  console.log(mutation);
  console.log(state.User.info);
})

let vm = new Vue({
  el: '#zd',
  store,
  Mixins,
  router,
  template: '<App/>',
  components: { App }
})
//  这种方法防止eslint 报错
Vue.use(vm)
